package com.chm.fw.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.chm.fw.R;
import com.chm.fw.base.BaseActivity;

public class ToastActivity extends BaseActivity implements View.OnClickListener {

    private View btn;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_toast);
        initView();
    }

    private void initView() {
        btn = findViewById(R.id.a_toast_btn);
        btn.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.a_toast_btn:
                toastGo(btn, "hello toast", 0);
                break;
        }
    }
}
